package Review2;

public class Test10 {
    public int numOf1(int num){
    	int count=0;
    	while(num!=0){
    		count++;
    		num=num&(num-1);
    	}
    	return count;
    }
}
